import { IsString, IsArray, IsOptional } from 'class-validator';

export class CreateUserDto {
  @IsString()
  username: string;

  @IsString()
  password: string;

  @IsString()
  nickName: string;

  @IsOptional()
  @IsString()
  email: string;

  @IsOptional()
  @IsString()
  avatar: string;

  @IsOptional()
  @IsString()
  phoneNumber: string;

  @IsArray()
  @IsOptional()
  roleIds: number[];
}
